package com.ybwh.springboot1.model.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.Data;
	
/**
 *
 * <p>
 * 移动app信息
 * </p>
 * @author Fan Beibei
 * @since 2019-03-21 23:08:39
 */
@Data 
@Entity 
@Table(name = "t_employee_app_info", uniqueConstraints = { @UniqueConstraint(columnNames = { "id" }) })
public class EmployeeAppInfo {

	/**
	 *主键
	 */
	@Id
	@SequenceGenerator(name = "t_employee_app_info")
	@Column(name = "id")
	private Long id;
	
	/**
	 *员工ID
	 */
	@Column(name = "employee_id")
	private Long employeeId;
	
	/**
	 *小米regId
	 */
	@Column(name = "reg_id")
	private String regId;
	
	/**
	 *信鸽token
	 */
	@Column(name = "xg_token")
	private String xgToken;
	
	/**
	 *设备类型(IOS/Android)
	 */
	@Column(name = "device_type")
	private String deviceType;
	
	/**
	 *操作系统版本
	 */
	@Column(name = "os_version")
	private String osVersion;
	
	/**
	 *app版本
	 */
	@Column(name = "app_version")
	private String appVersion;
	
	/**
	 *设备型号
	 */
	@Column(name = "device_model")
	private String deviceModel;
	
	/**
	 *是否已删除(0-否，1-是)
	 */
	@Column(name = "is_del")
	private Integer isDel;
	
	/**
	 *创建时间
	 */
	@Column(name = "create_ts")
	private Date createTs;
	
	/**
	 *最后更新时间
	 */
	@Column(name = "update_ts")
	private Date updateTs;
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
	}

}